import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:loxen/utils/color.dart';

class OperationNullCard extends StatelessWidget {
  final Function() onClick;

  const OperationNullCard({Key key, this.onClick}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Card(
      elevation: 5,
      child: Container(
        width: double.infinity,
        child: InkWell(
            onTap: onClick,
            child: Row(
              children: [
                Expanded(
                  child: Padding(
                    padding: EdgeInsets.only(left: 20.w),
                    child: Column(
                      children: [
                        Padding(
                          padding: EdgeInsets.only(top: 30.h, bottom: 30.h),
                          child: Image.asset(
                            'images/null_icon.png',
                            width: 237.w,
                            height: 152.w,
                          ),
                        ),
                        Padding(
                          padding: EdgeInsets.only(bottom: 30.h),
                          child: Text(
                            '亲，暂无数据哦,请选择其他运营中心',
                            style: TextStyle(fontSize: 28.sp, color: Colours.text_gray),
                          ),
                        )
                      ],
                    ),
                  ),
                ),
                Padding(
                  padding: EdgeInsets.only(right: 20.w),
                  child: Image.asset(
                    'images/mine_right.png',
                    width: 30.w,
                  ),
                ),
              ],
            )),
      ),
    );
  }
}
